package com.example.compiler;

import java.util.Set;

import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.lang.model.element.TypeElement;
import javax.tools.Diagnostic;

/**
 *
 */

//只作用在这个注解上
@SupportedAnnotationTypes("com.example.annitaions.szjFind")
public class szjFindProcessor extends AbstractProcessor {
    @Override
    public boolean process(Set<? extends TypeElement> set, RoundEnvironment roundEnvironment) {
        if (set.isEmpty()) {
            return true;
        }
        processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE,"---------->>>");

        return false;
    }
}